/*
 *    Copyright (c) 2018-2025, fanxl All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: fanxl (wangiegie@gmail.com)
 */

package com.snow4cloud.common.model.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 客户信息表
 *
 * @author fanxl
 * @date 2021-03-23 15:21:13
 */
@Data
@TableName("crm_account")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "客户信息表")
public class Account extends Model<Account> {
private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value="客户ID")
    private String id;
    /**
     * 客户类型
     */
    @ApiModelProperty(value="客户类型")
    private String accountType;
    /**
     * 客户名称
     */
    @ApiModelProperty(value="客户名称")
    private String accountName;
    /**
     * 拼音简码
     */
    @ApiModelProperty(value="拼音简码")
    private String singleCode;
    /**
     * 上级客户ID
     */
    @ApiModelProperty(value="上级客户ID")
    private String parentAccountId;
    /**
     * 联系人姓名
     */
    @ApiModelProperty(value="联系人姓名")
    private String linkName;
    /**
     * 联系人性别
     */
    @ApiModelProperty(value="联系人性别")
    private String linkSex;
    /**
     * 联系人电话
     */
    @ApiModelProperty(value="联系人电话")
    private String linkPhone;
    /**
     * 员工数
     */
    @ApiModelProperty(value="员工数")
    private Integer accountEmployees;
    /**
     * 电子邮箱
     */
    @ApiModelProperty(value="电子邮箱")
    private String accountEmail;
    /**
     * 网站
     */
    @ApiModelProperty(value="网站")
    private String accountWebsite;
    /**
     * 所属行业
     */
    @ApiModelProperty(value="所属行业")
    private String industry;
    /**
     * 传真号码
     */
    @ApiModelProperty(value="传真号码")
    private String accountFax;
    /**
     * 地址
     */
    @ApiModelProperty(value="地址")
    private String accountAddr;
    /**
     * 邮编
     */
    @ApiModelProperty(value="邮编")
    private String postCode;
    /**
     * 公司规模
     */
    @ApiModelProperty(value="公司规模")
    private String scale;
    /**
     * 企业性质
     */
    @ApiModelProperty(value="企业性质")
    private String accountCharacter;
    /**
     * 注册资金
     */
    @ApiModelProperty(value="注册资金")
    private BigDecimal capital;
    /**
     * 年收入
     */
    @ApiModelProperty(value="年收入")
    private BigDecimal earn;
    /**
     * 主营业务
     */
    @ApiModelProperty(value="主营业务")
    private String operation;
    /**
     * 客户级别
     */
    @ApiModelProperty(value="客户级别")
    private String accountLevel;
    /**
     * 最近联系时间
     */
    @ApiModelProperty(value="最近联系时间")
    private LocalDateTime touchTime;
    /**
     * 签单可能性
     */
    @ApiModelProperty(value="签单可能性")
    private BigDecimal possibility;
    /**
     * 固定资产
     */
    @ApiModelProperty(value="固定资产")
    private BigDecimal fixedAsset;
    /**
     * 预计签单日期
     */
    @ApiModelProperty(value="预计签单日期")
    private LocalDateTime contractDate;
    /**
     * 是否签单客户
     */
    @ApiModelProperty(value="是否签单客户")
    private String isContracted;
    /**
     * 说明
     */
    @ApiModelProperty(value="说明")
    private String accountDesc;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createDate;
    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime modifyDate;
    }
